package com.ruoyi.business.service;

import com.ruoyi.business.app.bo.AppWithdrawApplyQueryBo;
import com.ruoyi.business.app.vo.WalletWithdrawRecordVo;
import com.ruoyi.business.bo.HcxWithdrawApplyAddBo;
import com.ruoyi.business.bo.HcxWithdrawApplyEditBo;
import com.ruoyi.business.bo.HcxWithdrawApplyQueryBo;
import com.ruoyi.business.domain.HcxWithdrawApply;
import com.ruoyi.business.vo.HcxWithdrawApplyVo;
import com.ruoyi.common.core.mybatisplus.core.IServicePlus;
import com.ruoyi.common.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 提现申请Service接口
 *
 * @author wsdz
 * @date 2022-08-26
 */
public interface IHcxWithdrawApplyService extends IServicePlus<HcxWithdrawApply> {
	/**
	 * 查询单个
	 * @return
	 */
	HcxWithdrawApplyVo queryById(Long id);

	/**
	 * 查询列表
	 */
    TableDataInfo<HcxWithdrawApplyVo> queryPageList(HcxWithdrawApplyQueryBo bo);

	TableDataInfo<WalletWithdrawRecordVo> queryAppPageList(AppWithdrawApplyQueryBo bo);


	/**
	 * 查询列表
	 */
	List<HcxWithdrawApplyVo> queryList(HcxWithdrawApplyQueryBo bo);

	/**
	 * 根据新增业务对象插入提现申请
	 * @param bo 提现申请新增业务对象
	 * @return
	 */
	Boolean insertByAddBo(HcxWithdrawApplyAddBo bo);

	/**
	 * 根据编辑业务对象修改提现申请
	 * @param bo 提现申请编辑业务对象
	 * @return
	 */
	Boolean updateByEditBo(HcxWithdrawApplyEditBo bo);

	/**
	 * 校验并删除数据
	 * @param ids 主键集合
	 * @param isValid 是否校验,true-删除前校验,false-不校验
	 * @return
	 */
	Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 导入数据
     *
     * @param hcxWithdrawApplyList 排污口水质数据
     * @return String
     */
	String importHcxWithdrawApply(List<HcxWithdrawApplyVo> hcxWithdrawApplyList);

	Boolean audit(HcxWithdrawApplyEditBo bo)  throws  Exception;

	Boolean daozhang(List<Long> ids);

}
